const api = require('request.js');

const applyTuan= "/app/ck/shopkeeper/apply";//申请成为团长

const wechatLogin = "/app/wx/login"; //登录
const getSpus= "/app/goods/getSpus";//获取商品类型
const getGoodsList = "/app/goods/queryPage";//获取分页商品数据
const getPageSetUp= "/app/pageconfiginfo/queryAll";//获取页面配置
const selsectPoint = "/app/co/base/check_co"; //选择公司为了第一次进来获取token
const getCode = "/app/dict/queryByCode?code=1109";//查询祝福码值
const ZhufuSave= "/app/blessinginfo/save";//添加祝福
const ZhuFuUpload = "/app/upload";//上传图片，视频
const zhuFuChaxun = "/app/blessinginfo/list";//查询祝福
const biaoqian = "/app/ck/recipientgroupinfo/save";//创建标签
const saveInfo= "/app/ck/recipientinfo/save";//保存一个收礼人
const cheakGroup="/app/ck/recipientinfo/queryByGroup";//查询所有信息并分组
const saveGroupPerson ="/app/ck/recipientgroupinfo/saveGroupWithPerson";//保存标签（名称+收礼f/app/bleff/app/blessinginfo/deletessinginfo/delete人）
const deleteById = "/app/ck/recipientinfo/deleteById/";//删除收礼人
const getAllGroup="/app/ck/recipientgroupinfo/getAllGroup";//查询所有标签人数
const queryByGroupNo = "/app/ck/recipientinfo/queryByGroupNo";//根据标签编号查询收礼人信息
const ByShare = "/app/mkt/ckcoupon/ckCouponGrantByShare";//获取分享
const getCkCouponList = "/app/mkt/ckcoupon/getCkCouponList";//客户优惠券列表查询接口
const  cartSave = "/app/cart/save"//添加到购物车
const cheakCart= "/app/cart/list"//查询购物车
const menu_commit = "/app/or/menu/wx/commit"; //订单保存
const saveBatch= "/app/ck/recipientinfo/saveBatch"//批量上传EXcel
const updateInfo= "/app/ck/recipientinfo/update"//修改联系人
const updateBiaoQian= "/app/ck/recipientgroupinfo/updateGroup"//编辑标签
const cpList= "/app/co/goodsevaluateinfo/list"//查询测评信息
const saveSC= "/app/goodscollectiondtl/save"//添加收藏
const deleSC= "/app/goodscollectiondtl/delete"//删除收藏
const cheakSC= "/app/goodscollectiondtl/list"//查询收藏
const ZFList= "/app/blessinggavedtl/queryOldBlessing"//祝福列表
const goodsDetail= "/app/goods/detail";//获取商品详情
const scanZF  = "/app/blessinggavedtl/queryNewBlessing"//扫码查询祝福

const cpInfo= "/app/co/goodsevaluateinfo/info"//测评详情
const  orderList = "/app/or/sklist";//店长订单列表
const  getOrde = "/app/or/getWxOrder";//获取订单微信支付
const  batch_cancel = "/app/or/batch_cancel";//批次取消
const invoiceinfo = "/app/ck/invoiceinfo/save";//购物车价格
const confirm_receipt = "/app/or/confirm_receipt"; //确认收货

const getPhoneCaptcha = "/app/mobilerel/getPhoneCaptcha"; //获取验证码
 const saveCart = "/app/cart/save"; //保存+ - 到购物车
const mobileSave = "/app/mobilerel/save"; //绑定手机号
const bindInvitationCode = "/app/wx/bindInvitationCode"; //绑定邀请码

const cartDelete = "/app/cart/delete";//删除商品

const batchNoCheak = "/app/ck/invoiceinfo";//根据批次号查询

const FaPiaoChange = "/app/ck/invoiceinfo/update";//修改发票信息
const seeBlessing = "/app/blessinggavedtl/seeBlessing";

const blessingDelete = "/app/blessinginfo/delete";
const getValue = "/app/sysconfig/getValue/CK_BLESSING_SWITCH";

const logistics = "/api/kuai100/logistics/searchLogisticsV2";

const pageCkGiftCardList= "/app/egc/ckgiftcardinfo/pageCkGiftCardList";//获取礼品卡

const saveCkGiftCardGive= "/app/egc/ckgiftcardinfo/saveCkGiftCardGive";//分享保存
const saveCkGiftCardReceive="/app/egc/ckgiftcardinfo/saveCkGiftCardReceive";//获赠保存
const ecgChangeOrder="/app/or/menu/wx/ecgChangeOrder";//礼品卡兑换

const getCkInfo="/app/ck/getCkInfo";//查询客户信息
const popularize="/app/goods/popularize/queryPage";//查询发圈素材

const skOrderCreate= "/app/or/menu/wx/skOrderCreate";//代客下单

const evlist= "/app/goodscollectiondtl/evlist";//收藏测评

const saveGoodsShelves= "/app/ck/shopkeeper/saveGoodsShelves";//加入货架

const getSkGoodsInfo= "/app/goods/getSkGoodsInfo";//获取店长分享的商品详情

const shopkeeper= "/app/ck/shopkeeper/list";//分页查询商品货架

const ckOrderCreate= "/app/or/menu/wx/ckOrderCreate";//客户下单

const confirm_collection= "/app/or/confirm_collection";//店长确认收款

const confirm_cancel= "/app/or/cancel";//店长取消订单
const confirm_pay= "/app/or/payment";//店长未采购支付


const ckList="/app/ck/shopkeeper/getCkListByShopkeeper"; //查询店长客户
const lookGoodsSpu = "/app/lookgoodsinfo/getLookGoodsSpus"; //查询找货SPU
const lookGoodsPage = "/app/lookgoodsinfo/queryPage"; //分页查询找货商品
const lookGoodsSave = "/app/lookgoodsinfo/saveLookGoods"; //保存找货

const getStatistics = "/app/ck/shopkeeper/getStatistics"; // 店长统计查询接口


const API = {
  getStatisticsApi: (data) => api.request("POST", getStatistics, data, false, true),
    lookGoodsSaveApi: (data) => api.request("POST", lookGoodsSave, data, false, true),
    lookGoodsPageApi: (data) => api.request("POST", lookGoodsPage, data, false, true),
      getLookGoodsSpuApi: (data) => api.request("GET", lookGoodsSpu, data, false, true),
      
        ckListApi: (data) => api.request("POST", ckList, data, false, true),
    shopkeeperApi: (data) => api.request("POST", shopkeeper, data, false, true),
     getSkGoodsInfoApi: (data) => api.request("GET", getSkGoodsInfo, data, false, true),
    saveGoodsShelvesApi: (data) => api.request("POST", saveGoodsShelves, data, false, true),
     cheakSCApi: (data) => api.request("POST", cheakSC, data, false, true),
      evlistApi: (data) => api.request("POST", evlist, data, false, true),
      
      
      confirm_payApi: (data) => api.request("POST", confirm_pay, data, false, true),
    confirm_cancelApi: (data) => api.request("POST", confirm_cancel, data, false, true),
    confirm_collectionApi: (data) => api.request("POST", confirm_collection, data, false, true),
     ckOrderCreateApi: (data) => api.request("POST", ckOrderCreate, data, false, true),
     
     shopkeeperApi: (data) => api.request("POST", shopkeeper, data, false, true),
     getSkGoodsInfoApi: (data) => api.request("GET", getSkGoodsInfo, data, false, true),
    saveGoodsShelvesApi: (data) => api.request("POST", saveGoodsShelves, data, false, true),
     cheakSCApi: (data) => api.request("POST", cheakSC, data, false, true),
      evlistApi: (data) => api.request("POST", evlist, data, false, true),
    
     skOrderCreateApi: (data) => api.request("POST", skOrderCreate, data, false, true),
    
     popularizeApi: (data) => api.request("POST", popularize, data, false, true),
     getCkInfoApi: (data) => api.request("GET", getCkInfo, data, false, true),
     applyTuanApi: (data) => api.request("POST", applyTuan, data, false, true),
    
    pageCkGiftCardListApi: (data) => api.request("POST", pageCkGiftCardList, data, false, true),
     saveCkGiftCardGiveApi: (data) => api.request("POST", saveCkGiftCardGive, data, false, true),
      saveCkGiftCardReceiveApi: (data) => api.request("POST", saveCkGiftCardReceive, data, false, true),
       ecgChangeOrderApi: (data) => api.request("POST", ecgChangeOrder, data, false, true),
    
      logisticsApi: (data) => api.request("POST", logistics, data, false, true),
       getValueApi: (data) => api.request("GET", getValue, data, false, true),
              seeBlessingApi: (data) => api.request("GET", seeBlessing, data, false, true),
    
    blessingDeleteApi: (data) => api.request("GET", blessingDelete, data, false, true),
        
     FaPiaoChangeApi: (data) => api.request("POST", FaPiaoChange, data, false, true),
      batchNoCheakApi: (data) => api.request("GET", batchNoCheak, data, false, true),
      cartDeleteApi: (data) => api.request("POST", cartDelete, data, false, true),
      orderListApi: (data) => api.request("POST", orderList, data, false, true),
    bindInvitationCodeApi: (data) => api.request("GET", bindInvitationCode, data, false, true),
     getPhoneCaptchaApi: (data) => api.request("GET", getPhoneCaptcha, data, false, true),
     mobileSaveApi: (data) => api.request("POST", mobileSave, data, false, true),
       wechatLoginApi: (data) => api.request("POST", wechatLogin, data, false, true),
     invoiceinfoApi: (data) => api.request("POST", invoiceinfo, data,false, true),
      confirm_receiptApi: (data) => api.request("POST", confirm_receipt, data, true, true),
      batch_cancelApi: (data) => api.request("POST", batch_cancel, data, true, true),
    getSpusApi: (data) => api.request("GET", getSpus, data, false, true),
      deleteByIdApi: (data) => api.request("GET", deleteById, data, false, true),
    getGoodsListApi: (data) => api.request("POST", getGoodsList, data, false, true),
    getPageSetUpApi: (data) => api.request("POST", getPageSetUp, data, false, true),
    selsectPointApi: (data) => api.request("POST", selsectPoint, data, false, true),
   zhufuSaveApi: (data) => api.request("POST", ZhufuSave, data, false, true),
   zhuFuChaxunApi: (data) => api.request("POST", zhuFuChaxun, data, false, true),
   biaoqianApi: (data) => api.request("POST", biaoqian, data, false, true),
   saveInfoApi: (data) => api.request("POST", saveInfo, data, false, true), 
   cheakGroupApi: (data) => api.request("GET", cheakGroup, data, false, true),
    queryByGroupNoApi: (data) => api.request("GET", queryByGroupNo, data, false, true),
     saveGroupPersonApi: (data) => api.request("POST", saveGroupPerson, data, false, true),
     
       getAllGroupApi: (data) => api.request("GET", getAllGroup, data, false, true),
       ByShareApi: (data) => api.request("POST", ByShare, data, false, true),
       getOrdeApi: (data) => api.request("POST",getOrde , data, true, true),
       getCkCouponListApi: (data) => api.request("POST", getCkCouponList, data, false, true),
     
     saveCartApi: (data) => api.request("POST", saveCart, data, false, true),
    cheakCartApi: (data) => api.request("POST", cheakCart, data, false, true), 
     order_saveApi: (data) => api.request("POST", menu_commit, data, false, true),
    saveBatchApi: (data) => api.request("POST", saveBatch, data, false, true),
     
    updateInfoApi: (data) => api.request("POST", updateInfo, data, false, true),
      
      updateBiaoQianApi: (data) => api.request("POST", updateBiaoQian, data, false, true),
        cpListApi: (data) => api.request("GET", cpList, data, false, true),
        scanZFApi: (data) => api.request("GET", scanZF, data, false, true),
      
        
        ZFListApi: (data) => api.request("GET", ZFList, data, false, true),
        deleSCApi: (data) => api.request("GET", deleSC, data, false, true),
        saveSCApi: (data) => api.request("POST", saveSC, data, false, true),
       
        
            getGoodsDetailApi: (data) => api.request("POST", goodsDetail, data, false, true),  
                
               cpInfoApi: (data) => api.request("GET", cpInfo, data, false, true),
        


   ZhuFuUploadApi: (file,data) => api.requestFile(ZhuFuUpload,file, data),
         
    
    
 
};
exports.API = API
